package com.lhd.shop.controller;

import com.lhd.shop.service.FrontService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vo.ResponseData;

import java.util.Map;

/**
 * @program: sporadic
 * @description:
 * @author: LHD   QQ:1727865856
 * @create: 2019-11-19 15:39
 **/
@RequestMapping("/table")
@RestController
public class TableController {
    @Autowired
    private FrontService frontService;

    @GetMapping("/queryTable")
    public ResponseData<Map<String,Object>> query(Integer mid, String  tableName){
        return frontService.queryTableBymidAndtableNum(mid,tableName);
    }
}
